public class Utility {
    public func generateRandomInt(min: Int, max: Int) -> Int {
        return Int.random(in: min...max)
    }
}

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let utility = Utility()
        let randomNumber = utility.generateRandomInt(min: 1, max: 100)
        print("Generated random number is \(randomNumber)")
    }

}